﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace O.M.Production.Domain.Entity
{
    /// <summary>
    /// 委外工单表
    /// </summary>

    [SugarTable("subcontracting_work_order")]
    public class subcontracting_work_order : BaseModel
    {
        /// <summary>
        /// 工单编号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnDescription = "工单编号", Length = 100)]
        public string subcontracting_work_order_Id { get; set; }

        /// <summary>
        /// 产品编号
        /// </summary>
        [SugarColumn(ColumnDescription = "产品编号", Length = 100)]
        public string? product_id { get; set; }

        /// <summary>
        /// 物料ID
        /// </summary>
        [SugarColumn(ColumnDescription = "物料ID", Length = 100)]
        public string? material_id { get; set; }

        /// <summary>
        /// 工单名称
        /// </summary>
        [SugarColumn(ColumnDescription = "工单名称", Length = 100)]
        public string? job_name { get; set; }

        /// <summary>
        /// 录入日期
        /// </summary>
        [SugarColumn(ColumnDescription = "录入日期")]
        public DateTime? input_date { get; set; }

        /// <summary>
        /// 委托单位
        /// </summary>
        [SugarColumn(ColumnDescription = "委托单位", Length = 100)]
        public string? commissioned_agent { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        [SugarColumn(ColumnDescription = "联系人", Length = 100)]
        public string? contacts { get; set; }

        /// <summary>
        /// 联系人电话
        /// </summary>
        [SugarColumn(ColumnDescription = "联系人电话", Length = 100)]
        public string? contacts_phone { get; set; }

        /// <summary>
        /// 成品概要
        /// </summary>
        [SugarColumn(ColumnDescription = "成品概要", Length = 100)]
        public string? summary_of_finished_products { get; set; }

        /// <summary>
        /// 物料摘要
        /// </summary>
        [SugarColumn(ColumnDescription = "物料摘要", Length = 100)]
        public string? material_summary { get; set; }

        /// <summary>
        /// 入库仓库
        /// </summary>
        [SugarColumn(ColumnDescription = "入库仓库", Length = 100)]
        public string? storage_warehouse { get; set; }

        /// <summary>
        /// 入库人员
        /// </summary>
        [SugarColumn(ColumnDescription = "入库人员", Length = 100)]
        public string? warehousing_personnel { get; set; }

        /// <summary>
        /// 关联单号
        /// </summary>
        [SugarColumn(ColumnDescription = "关联单号", Length = 100)]
        public string? associated_single_number { get; set; }

        /// <summary>
        /// 负责人
        /// </summary>
        [SugarColumn(ColumnDescription = "负责人", Length = 100)]
        public string? person_in_charge { get; set; }

        /// <summary>
        /// 负责人电话
        /// </summary>
        [SugarColumn(ColumnDescription = "负责人电话", Length = 100)]
        public string? person_in_charge_phone { get; set; }

        /// <summary>
        /// 关联项目
        /// </summary>
        [SugarColumn(ColumnDescription = "关联项目", Length = 100)]
        public string? associated_project { get; set; }

        /// <summary>
        /// 部门
        /// </summary>
        [SugarColumn(ColumnDescription = "部门", Length = 100)]
        public string? department { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnDescription = "备注", Length = 100)]
        public string? remarks { get; set; }
        /// <summary>
        /// 附件
        /// </summary>
        [SugarColumn(ColumnDescription = "附件", Length = 200)]
        public string? attachment { get; set; }
    }
}
